﻿using Company.Application.Share.Entities;
using Company.Application.Share.Interfaces;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Company.Shell.Models
{
    /// <summary>
    /// 当前用户的会话
    /// </summary>
    class Session : BindableBase, ISession
    {
        private UserEntity currentUser = new();
        public UserEntity CurrentUser
        {
            get => currentUser;
            set => SetProperty(ref currentUser, value);
        }

        private HospitalEntity hospitalEntity = new();
        public HospitalEntity CurrentHospital
        {
            get => hospitalEntity;
            set => SetProperty(ref hospitalEntity, value);
        }
    }
}
